package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.pojo.DepartmentSon;
import com.zhentao.pojo.Doctor;
import com.zhentao.service.DepartmentService;
import com.zhentao.service.DepartmentSonService;
import com.zhentao.mapper.DepartmentSonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @author HP
 * @description 针对表【department_son】的数据库操作Service实现
 * @createDate 2025-03-21 16:38:06
 */
@Service
public class DepartmentSonServiceImpl extends ServiceImpl<DepartmentSonMapper, DepartmentSon> implements DepartmentSonService {
    @Autowired
    private DepartmentSonMapper departmentSonMapper;

    @Override
    public List<DepartmentSon> findByKid(Integer kid) {
        QueryWrapper<DepartmentSon> wrapper = new QueryWrapper<>();
        wrapper.eq("kid", kid);
        return departmentSonMapper.selectList(wrapper);
    }
}




